package com.bw.controller;

import com.alibaba.fastjson2.JSONObject;
import com.bw.bean.Student;
import com.bw.service.StuDaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class StudentController {
    @Autowired
   StuDaoService service;
    @RequestMapping("ShowStu")
    public  List<Student> showall(){
        List<Student> list = service.showall();
        return list;
    }


}
